<div class="navigation">
    <strong><i class="icon-user"></i> Dashboard</strong> 
    <hr>
      <ul class="list-unstyled">
        <li class="nav-header"> <a href="#" data-toggle="collapse" data-target="#userMenu">
          <h5>People <i class="icon-chevron-right"></i></h5>
          </a>
            <ul class="list-unstyled collapse in" id="userMenu">
                <li><i class="icon-user"></i><?php echo CHtml::link('User Profiles', array('user/admin'));?></li>
                <li><i class="icon-star"></i> <?php echo CHtml::link('Alumni', array('alumni/admin'));?></li>
                <li><i class="icon-tag"></i> <?php echo CHtml::link('Volunteer', array('volunteer/admin'));?></li>
                <li><i class="icon-exclamation-sign"></i> <?php echo CHtml::link('Batch', array('batch/admin'));?></li>
            </ul>
        </li>
        <li class="nav-header"> <a href="#" data-toggle="collapse" data-target="#menu2">
          <h5>Operations <i class="icon-chevron-right"></i></h5>
          </a>
        
            <ul class="list-unstyled collapse" id="menu2">
                <li><i class="icon-envelope"></i> <?php echo CHtml::link('Donation', array('donation/admin'));?></li>
                <li><i class="icon-file"></i> <?php echo CHtml::link('Mission Areas', array('missionArea/admin'));?>
                </li>
                <li><i class="icon-bookmark"></i> <?php echo CHtml::link('Mission Assignments', array('missionAssignment/admin'));?>
                </li>
                </li>
            </ul>
            <hr>
            <strong><i class="icon-flag"></i> <?php echo CHtml::link('Audit Trail', array('auditTrail/admin'));?></strong>
          </li>
        </li>
    </div>
<!--nav-list-->

  <div class="dashboard">
        <!-- <strong><?php echo CHtml::link('<i class="icon-start"></i><strong>ALUMNI', array('index'));?></strong> -->
        <strong><a href="#"><i class="icon-bookmark"></i>MISSION ASSIGNMENTS</strong>
        <ul class="list-inline pull-right">
            <li><?php echo CHtml::link('<i class="icon-plus-sign"></i><strong>Add Assignments</strong>', array('create'));?></li>
            <li><a href="#"><i class="icon-download-alt"></i><strong>Export data</strong></a></li> 
        </ul>
   </div>
   <div class="form search_member" >
    <form method="get">
        <div class="text input-group margin-bottom-sm">
           <span class="input-group-addon"><i class="icon-search"></i></span>
            <input type="text" name="keyword" placeholder="search profiles">
          </div>
      <!--   <div class="search_info">use alumni name, alumni code</div> -->
    </form>
</div>
</div>
<br>
<br>
<?php $this->widget('bootstrap.widgets.TbGridView', array(
'type'=>'striped bordered condensed',
'dataProvider'=>$model,
'template'=>"{summary}\n{items}\n{pager}",
'columns'=>array(
			array(
					'header'=>'Mission',
					'name'=>'mission_area_id',
					'filter'=> CHtml::listData(MissionArea::model()->findAll( array('order'=>'mission_name ASC')), 'id','missionName'),
					'value'=>'$data->missionArea->missionName',
					), 

			array(
					'header'=>'Volunteer',
					'name'=>'volunteer_id',
					'filter'=> CHtml::listData(User::model()->findAll( array('order'=>'user_lname ASC')), 'id','volunteerName'),
					'value'=>'$data->volunteer->volunteerName',
					), 
						'assignment_length',
        array(
          'header'=>'Volunteer',
          'name'=>'assignment_status',
/*          'filter'=> CHtml::listData(MissionAssignment::model()->findAll("assignment_status NOT IN ('finished')"),'assignment_status','status'),
          'filter'=>['1'=>'PAID', '0'=>'0',]   */     
), 


			array(
					'class'=>'bootstrap.widgets.TbButtonColumn',
					'template'=>'{view}{update}{delete}',
				'buttons'=>array(
						'view'=>array('icon'=>'icon-search'),
						'update'=>array('icon'=>'icon-edit'),
						'delete'=>array('icon'=>'icon-trash'),
				),
		),),
)); ?>
